#! /usr/bin/sh
cd /root/book-service
ps -ef|grep book-service.jar|grep -v grep|awk '{ print $2 }'|xargs -r kill -9
echo > nohup.out
nohup java -Dproject.name=book-service -XX:+PrintGCDetails   -XX:-OmitStackTraceInFastThrow -jar book-service.jar 2>&1 >nohup.out &